using System;
using Microsoft.Xna.Framework.Graphics;
using Xfinity.Engine;
using Microsoft.Xna.Framework;

namespace Xfinity.Rendering
{
    public class PostProcessingEffect:DrawableGameComponent
    {
        public PostProcessingEffect(Game game):base(game)
        {
            
        }
        private Effect effect;

        public Effect Effect
        {
            get { return effect; }
            set { effect = value; }
        }

        private RenderTarget target;

        /// <summary>
        /// The render target.
        /// </summary>
        public RenderTarget Target
        {
            get { return target; }
            set { target = value; }
        }


        public override void Draw(GameTime gameTime)
        {
        //    GraphicsDevice.ResolveBackBuffer(target); ;
        //    effect.Parameters.GetParameterBySemantic("TEXTURE").SetValue(target);
            base.Draw(gameTime);
        }
    }
}
